package com.runachina.appversion;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.File;

/**
 * Created by lyl on 2017/7/31.
 *
 * 添加三方库 bmob 进行自动更新
 *
 */

public class AppVersion implements Parcelable {
    /**
     * 数据源同Bmob中的字段对应
     */
    private int versionCode = 0;
    private String versionName = "";
    private File apkFile;
    private String apkUrl = "";
    private int apkSize = 0;
    private String updateMsg = "";
    @Override
    public int describeContents() {
        return 0;
    }

    public int getVersionCode() {
        return versionCode;
    }

    public void setVersionCode(int versionCode) {
        this.versionCode = versionCode;
    }

    public String getVersionName() {
        return versionName;
    }

    public void setVersionName(String versionName) {
        this.versionName = versionName;
    }

    public File getApkFile() {
        return apkFile;
    }

    public void setApkFile(File apkFile) {
        this.apkFile = apkFile;
    }

    public String getApkUrl() {
        return apkUrl;
    }

    public void setApkUrl(String apkUrl) {
        this.apkUrl = apkUrl;
    }

    public int getApkSize() {
        return apkSize;
    }

    public void setApkSize(int apkSize) {
        this.apkSize = apkSize;
    }

    public String getUpdateMsg() {
        return updateMsg;
    }

    public void setUpdateMsg(String updateMsg) {
        this.updateMsg = updateMsg;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(versionCode);
        dest.writeString(versionName);
        dest.writeString(apkUrl);
        dest.writeInt(apkSize);
        dest.writeString(updateMsg);
    }
}
